package fr.umlv.m2.jee.portailEtudiant.service;

import fr.umlv.m2.jee.portailEtudiant.persistence.Course;
import fr.umlv.m2.jee.portailEtudiant.persistence.Tp;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 19/03/11
 * Time: 07:51
 * To change this template use File | Settings | File Templates.
 */
public class DisplayTp implements Serializable{
    private Tp tp;

    public DisplayTp(Tp tp) {
        this.tp = tp;
    }

    public String getName() {
        return tp.getName();
    }

    public Course getCourse() {
        return tp.getCourse();
    }

     public void setName(String newName) {
        this.tp.setName(newName);
    }

    public void setUserName(String newUserName) {
        this.tp.setUserName(newUserName);
    }

    public void setCourse(Course course) {
        this.tp.setCourse(course);
    }
}
